import Vue from 'vue'
import Router from 'vue-router'

const _import = require('./import-' + process.env.NODE_ENV)

Vue.use(Router)

export default new Router({
    base: '/',
    mode: 'hash', // 去掉url中的#
    routes: [
        {
            path: '/',
            name: 'show',
            component: _import('live/detail/show')
        }, 
        {
            path: '/login',
            name: 'login',
            component: _import('live/detail/login')
        },
        {
            path: '/bindPhone',
            name: 'bindPhone',
            component: _import('live/detail/bindPhone/index')
        },
    ]
})